
//TODO a(56)
function a56(module, exports, a) {
    var i = a(23), s = a(3), r = a(21), n = (a(2), function (e) {
        this.contDom = e.dom.cont, this.parentEl = e.dom.parentEl, this.coreVideo = e.coreVideo
    });
    s.extend(n, i);
    var o = {
        init: function () {
            this.playerData = this.manager.playerData, this.nodes = {playBtn: this.parentEl.find(".hv_start span")}, this.addEvent()
        }, addEvent: function () {
            "PC" == this.playerData.interactiveType ? this.nodes.playBtn.on("click", this.onBtnPlay, this) : this.nodes.playBtn.on("touchend", this.onBtnPlay, this), this.manager.evt.on("vjs_play", this.onPlay, this), this.manager.evt.on("vjs_pause", this.onPause, this), this.manager.evt.on("vjs_ended", this.onEnded, this)
        }, onBtnPlay: function () {
            switch (this.nodes.playBtn[0].className) {
                case"hv_ico_star":
                    this.manager.evt.trigger(r.EVENT.PLAYER_COMMAND, "pause"), this.manager.evt.trigger("vjs_activePause");
                    break;
                case"hv_ico_stop":
                    this.manager.evt.trigger(r.EVENT.PLAYER_COMMAND, "play");
                    break;
                case"hv_ico_refresh":
                    this.manager.evt.trigger(r.EVENT.PLAYER_COMMAND, "replay")
            }
        }, onPlay: function () {
            this.nodes.playBtn[0].className = "hv_ico_star"
        }, onPause: function () {
            this.nodes.playBtn[0].className = "hv_ico_stop"
        }, onEnded: function () {
            this.nodes.playBtn[0].className = "hv_ico_refresh"
        }
    };
    s.merge(n.prototype, o), module.exports = n
}

